package me.obstsalat.guildera;

import java.io.Serializable;

import org.bukkit.Location;

@SuppressWarnings("serial")
public class Treasure implements Serializable{

	private int x;
	private int y;
	private int z;
	private int ll;
	
	Treasure(int cx, int cy, int cz, int lootlevel) {
		x = cx;
		y = cy;
		z = cz;
		ll = lootlevel;
	}
	
	Treasure(Location l, int lootlevel) {
		x = l.getBlockX();
		y = l.getBlockY();
		z = l.getBlockZ();
		ll = lootlevel;
	}

	public int getX() {
		return x;
	}
	
	public int getY() {
		return y;
	}
	
	public int getZ() {
		return z;
	}
	
	public int getLootLevel() {
		return ll;
	}
	
	public boolean equal(Treasure t) {
		return (t.getX() == x && t.getY() == y && t.getZ() == z && t.getLootLevel() == ll);
	}

}
